package com.stress.testing.common.interceptor;

public class InvokeResult {
    private boolean invoked;
    private Object result;

    public InvokeResult(boolean invoked, Object result) {
        this.invoked = invoked;
        this.result = result;
    }

    public boolean isInvoked() {
        return invoked;
    }

    public Object getResult() {
        return result;
    }

    public static InvokeResult invoked(Object result) {
        return new InvokeResult(true, result);
    }

    public static InvokeResult invoked() {
        return new InvokeResult(false, null);
    }
}
